<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <script>
            function fn(x) {
                return function (y) {
                    return x * y;
                };
            }
            let width = fn(10);
            let area = width(20);
            let area1 = width(30);
            console.log(area, area1);
        </script>
    </body>
</html>
